using System;
using System.Data;
using System.Collections.Generic;
using ADOBase;
namespace eTMS.DAO{
	/********************************BEGIN TrangThaiSinhVienDAO****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:26/10/2011 34:05:09</para>
	/// <para>Class Name: TrangThaiSinhVienDAO</para>
	/// <para>Description: Class access to table TrangThaiSinhVien in database. Coder should'nt code here.</para>
	///</summary>

	
	public partial class TrangThaiSinhVienDAO : DAOBase<TrangThaiSinhVienEntity>{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateSelectOneCommand</para>
		/// <para>Input: trangthaisinhvien_id</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectOneCommand(int trangthaisinhvien_id){
			string strSQL="SELECT  [trangthaisinhvien_id],[trangthai_id],[sinhvien_id],[ngaycapnhat],[ngayquyetdinh] FROM [TrangThaiSinhVien]  WHERE [TrangThaiSinhVien].[trangthaisinhvien_id]=@trangthaisinhvien_id";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@trangthaisinhvien_id",trangthaisinhvien_id);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: trangthaisinhvien_id</para>
		/// <para>Output: TrangThaiSinhVienEntity</para>
		///</summary>
		public TrangThaiSinhVienEntity SelectOne(int trangthaisinhvien_id){
			IDbCommand cmd=this.CreateSelectOneCommand(trangthaisinhvien_id);
			return this.Select(cmd);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateSelectAllCommand</para>
		/// <para>Input: </para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectAllCommand(){
			string strSQL="SELECT  [trangthaisinhvien_id],[trangthai_id],[sinhvien_id],[ngaycapnhat],[ngayquyetdinh] FROM [TrangThaiSinhVien] ";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateSelectAllByKeyCommand</para>
		/// <para>Input: ColumnName,ColumnValue</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectAllByKeyCommand(string ColumnName,object Value){
			string strSQL="SELECT  [trangthaisinhvien_id],[trangthai_id],[sinhvien_id],[ngaycapnhat],[ngayquyetdinh] FROM [TrangThaiSinhVien]  WHERE [TrangThaiSinhVien].["+ColumnName+"]=@ColumnName";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@ColumnName",Value);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TrangThaiSinhVienEntity</para>
		///</summary>
		public List<TrangThaiSinhVienEntity> SelectAll(){
			IDbCommand cmd=this.CreateSelectAllCommand();
			return this.SelectList(cmd);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			IDbCommand cmd=this.CreateSelectAllCommand();
			return this.SelectDS(cmd);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateSelectAllFilterCommand</para>
		/// <para>Input: </para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectAllFilterCommand(string strFilter){
			string strSQL="SELECT  [trangthaisinhvien_id],[trangthai_id],[sinhvien_id],[ngaycapnhat],[ngayquyetdinh] FROM [TrangThaiSinhVien]  WHERE "+RemoveInjection(strFilter);
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateSelectAllByKeyFilterCommand</para>
		/// <para>Input: ColumnName,ColumnValue</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectAllByKeyFilterCommand(string strFilter,string ColumnName,object Value){
			string strSQL="SELECT  [trangthaisinhvien_id],[trangthai_id],[sinhvien_id],[ngaycapnhat],[ngayquyetdinh] FROM [TrangThaiSinhVien]  WHERE [TrangThaiSinhVien].["+ColumnName+"]=@ColumnName AND "+RemoveInjection(strFilter);
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@ColumnName",Value);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TrangThaiSinhVienEntity</para>
		///</summary>
		public List<TrangThaiSinhVienEntity> SelectAllFilter(string strFilter){
			IDbCommand cmd=this.CreateSelectAllFilterCommand(strFilter);
			return this.SelectList(cmd);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: SelectAllDSFilter</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			IDbCommand cmd=this.CreateSelectAllFilterCommand(strFilter);
			return this.SelectDS(cmd);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateInsertCommand</para>
		/// <para>Input: TrangThaiSinhVienEntity</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateInsertCommand(TrangThaiSinhVienEntity o){
			string strSQL="INSERT INTO [TrangThaiSinhVien]([trangthai_id],[sinhvien_id],[ngaycapnhat],[ngayquyetdinh]) VALUES  (@trangthai_id,@sinhvien_id,@ngaycapnhat,@ngayquyetdinh);SELECT  @@IDENTITY";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			if(o.IsNulltrangthai_id)
				this.CreateCommandParameter(cmd,"@trangthai_id",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@trangthai_id",o.trangthai_id);

			if(o.IsNullsinhvien_id)
				this.CreateCommandParameter(cmd,"@sinhvien_id",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@sinhvien_id",o.sinhvien_id);

			if(o.IsNullngaycapnhat)
				this.CreateCommandParameter(cmd,"@ngaycapnhat",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@ngaycapnhat",o.ngaycapnhat);

			if(o.IsNullngayquyetdinh)
				this.CreateCommandParameter(cmd,"@ngayquyetdinh",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@ngayquyetdinh",o.ngayquyetdinh);


			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: Save</para>
		/// <para>Input: TrangThaiSinhVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(TrangThaiSinhVienEntity o){
			bool result=false;
			IDbCommand cmd=this.CreateInsertCommand(o);
			object id=this.ExecuteScalar(cmd,ref result);
			cmd.Dispose();
			try{
				o.trangthaisinhvien_id=int.Parse(Convert.ToString(id));
			}
			catch{}
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of TrangThaiSinhVienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<TrangThaiSinhVienEntity>list){
			foreach(TrangThaiSinhVienEntity o in list){
				try{
					this.Save(o);
				}
				catch{
				}
			}
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateUpdateCommand</para>
		/// <para>Input: TrangThaiSinhVienEntity</para>
		/// <para>Output: </para>
		///</summary>
		protected IDbCommand CreateUpdateCommand(TrangThaiSinhVienEntity o){
			string strSQL="UPDATE  [TrangThaiSinhVien] SET [TrangThaiSinhVien].[trangthai_id]=@trangthai_id,[TrangThaiSinhVien].[sinhvien_id]=@sinhvien_id,[TrangThaiSinhVien].[ngaycapnhat]=@ngaycapnhat,[TrangThaiSinhVien].[ngayquyetdinh]=@ngayquyetdinh WHERE [TrangThaiSinhVien].[trangthaisinhvien_id]=@trangthaisinhvien_id";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			if(o.IsNulltrangthaisinhvien_id)
				this.CreateCommandParameter(cmd,"@trangthaisinhvien_id",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@trangthaisinhvien_id",o.trangthaisinhvien_id);

			if(o.IsNulltrangthai_id)
				this.CreateCommandParameter(cmd,"@trangthai_id",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@trangthai_id",o.trangthai_id);

			if(o.IsNullsinhvien_id)
				this.CreateCommandParameter(cmd,"@sinhvien_id",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@sinhvien_id",o.sinhvien_id);

			if(o.IsNullngaycapnhat)
				this.CreateCommandParameter(cmd,"@ngaycapnhat",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@ngaycapnhat",o.ngaycapnhat);

			if(o.IsNullngayquyetdinh)
				this.CreateCommandParameter(cmd,"@ngayquyetdinh",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@ngayquyetdinh",o.ngayquyetdinh);


			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateUpdateFieldCommand</para>
		/// <para>Input: ColumnName,ColumnValue,trangthaisinhvien_id</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateUpdateFieldCommand(string ColumnName,object Value,int trangthaisinhvien_id){
			string strSQL="UPDATE  [TrangThaiSinhVien] SET [TrangThaiSinhVien].["+ColumnName+"]=@ColumnName WHERE [TrangThaiSinhVien].[trangthaisinhvien_id]=@trangthaisinhvien_id";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@trangthaisinhvien_id",trangthaisinhvien_id);



			this.CreateCommandParameter(cmd,"@ColumnName",Value);


			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: Update</para>
		/// <para>Input: TrangThaiSinhVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(TrangThaiSinhVienEntity o){
			IDbCommand cmd=this.CreateUpdateCommand(o);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of TrangThaiSinhVienEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<TrangThaiSinhVienEntity>list){
			foreach(TrangThaiSinhVienEntity o in list){
				try{
					this.Update(o);
				}
				catch{
				}
			}
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: Updatetrangthai_id</para>
		/// <para>Input: Newtrangthai_id,trangthaisinhvien_id</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Updatetrangthai_id(int Newtrangthai_id,int trangthaisinhvien_id){
			IDbCommand cmd=this.CreateUpdateFieldCommand("trangthai_id",Newtrangthai_id,trangthaisinhvien_id);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: Updatesinhvien_id</para>
		/// <para>Input: Newsinhvien_id,trangthaisinhvien_id</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Updatesinhvien_id(int Newsinhvien_id,int trangthaisinhvien_id){
			IDbCommand cmd=this.CreateUpdateFieldCommand("sinhvien_id",Newsinhvien_id,trangthaisinhvien_id);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: Updatengaycapnhat</para>
		/// <para>Input: Newngaycapnhat,trangthaisinhvien_id</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Updatengaycapnhat(DateTime Newngaycapnhat,int trangthaisinhvien_id){
			IDbCommand cmd=this.CreateUpdateFieldCommand("ngaycapnhat",Newngaycapnhat,trangthaisinhvien_id);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: Updatengayquyetdinh</para>
		/// <para>Input: Newngayquyetdinh,trangthaisinhvien_id</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Updatengayquyetdinh(DateTime Newngayquyetdinh,int trangthaisinhvien_id){
			IDbCommand cmd=this.CreateUpdateFieldCommand("ngayquyetdinh",Newngayquyetdinh,trangthaisinhvien_id);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: DeleteAllCommand</para>
		/// <para>Input: </para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateDeleteAllCommand(){
			string strSQL="DELETE   FROM [TrangThaiSinhVien]  ";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: DeleteCommand</para>
		/// <para>Input: TrangThaiSinhVienEntity</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateDeleteCommand(TrangThaiSinhVienEntity o){
			string strSQL="DELETE   FROM [TrangThaiSinhVien]   WHERE [TrangThaiSinhVien].[trangthaisinhvien_id]=@trangthaisinhvien_id";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			if(o.IsNulltrangthaisinhvien_id)
				this.CreateCommandParameter(cmd,"@trangthaisinhvien_id",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@trangthaisinhvien_id",o.trangthaisinhvien_id);


			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: DeleteAll</para>
		/// <para>Input: </para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteAll(){
			IDbCommand cmd=this.CreateDeleteAllCommand();
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateDeleteByPrimaryKeyCommand</para>
		/// <para>Input: trangthaisinhvien_id</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateDeleteByPrimaryKeyCommand(int trangthaisinhvien_id){
			string strSQL="DELETE   FROM [TrangThaiSinhVien]   WHERE [TrangThaiSinhVien].[trangthaisinhvien_id]=@trangthaisinhvien_id";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@trangthaisinhvien_id",trangthaisinhvien_id);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: CreateDeleteByKeyCommand</para>
		/// <para>Input: ColumnName , ColumnValue</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateDeleteByKeyCommand(string ColumnName,object Value){
			string strSQL="DELETE   FROM [TrangThaiSinhVien]   WHERE [TrangThaiSinhVien].["+ColumnName+"]=@ColumnName";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@ColumnName",Value);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: Delete</para>
		/// <para>Input: TrangThaiSinhVienEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(TrangThaiSinhVienEntity o){
			IDbCommand cmd=this.CreateDeleteCommand(o);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: trangthaisinhvien_id</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int trangthaisinhvien_id){
			IDbCommand cmd=this.CreateDeleteByPrimaryKeyCommand(trangthaisinhvien_id);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		#endregion

		#region Select join to SinhVienTrangThai functions
		#endregion

		#region Select join to SinhVien functions
		#endregion

		#region Select join to TrangThai functions
		#endregion

		#region Select,delete by trangthaisinhvien_id functions
		#endregion

		#region Select,delete by trangthai_id functions
		#endregion

		#region Select,delete by sinhvien_id functions
		#endregion

		#region MapObject functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:26/10/2011 34:05:09</para>
		/// <para>Name: MapObject</para>
		/// <para>Input: IDataReader</para>
		/// <para>Output: TrangThaiSinhVienEntity</para>
		///</summary>
		protected override TrangThaiSinhVienEntity MapObject(IDataReader r){
			TrangThaiSinhVienEntity entity = new TrangThaiSinhVienEntity();
			try{
				if(r.FieldCount>0){
					try
					{
						int ordinal = r.GetOrdinal("trangthaisinhvien_id");
						if (!r.IsDBNull(ordinal)) entity.trangthaisinhvien_id = ((int)(r.GetValue(ordinal)));
					}
					catch{}
					try
					{
						int ordinal = r.GetOrdinal("trangthai_id");
						if (!r.IsDBNull(ordinal)) entity.trangthai_id = ((int)(r.GetValue(ordinal)));
					}
					catch{}
					try
					{
						int ordinal = r.GetOrdinal("sinhvien_id");
						if (!r.IsDBNull(ordinal)) entity.sinhvien_id = ((int)(r.GetValue(ordinal)));
					}
					catch{}
					try
					{
						int ordinal = r.GetOrdinal("ngaycapnhat");
						if (!r.IsDBNull(ordinal)) entity.ngaycapnhat = ((DateTime)(r.GetValue(ordinal)));
					}
					catch{}
					try
					{
						int ordinal = r.GetOrdinal("ngayquyetdinh");
						if (!r.IsDBNull(ordinal)) entity.ngayquyetdinh = ((DateTime)(r.GetValue(ordinal)));
					}
					catch{}
					return entity;
				}
			}catch{}
			return null;
		}
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END TrangThaiSinhVienDAOBase*****************************************/
	/*****************************************************************************************************/
}

